package com.hspedu.extend_.exercise;

import com.sun.org.apache.xpath.internal.objects.XString;

public class PC extends Computer {

    private String brand;

    public PC(String cpu, int memory, int disk, String brand) {
        super(cpu, memory, disk);
        this.brand = brand;
    }
    public void showInfo(){
        System.out.println("==== PC 的信息====");
        System.out.println(getDetails() + " brand=" + brand);
    }


    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

}
